<?php
/**
 * @package LaravelBoot
 *
 * @internal
 *
 * @author mawenpei
 * @date 2019/3/12 18:39
 * @version
 */
namespace Modules\ApiV2\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Route;

class ApiV2ServiceProvider extends ServiceProvider
{
    //protected $defer = true;

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        $this->loadRoutes();
    }

    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {

    }

    public function loadRoutes()
    {
        // auth routes
        Route::namespace('Modules\ApiV2\Controllers')->group(module_path('ApiV2/routes/api.php'));
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return [];
    }
}